package com.example.crondemo.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author yanbl
 * @version V1.8
 * @Description: 分页配置
 * @Date 2021/7/1 17:12
 */
@Configuration
@MapperScan("com.example.crondemo.mapper")
public class MybatisPlusPageConfig {

    // 配置分页插件
    @Bean
    public PaginationInterceptor paginationInterceptor() {
        return new PaginationInterceptor();
    }
}
